<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>颜色渐变</title>
    <style>
        #app {
            width: 500px;
            height: 500px;
            /* image会覆盖掉color最底层 */
            /* background-color: linear-gradient(red, blue); */
            background-image: linear-gradient(red, blue);
        }
    </style>
</head>

<body>
    <div id="app"></div>
</body>

</html>